@(videoUrl:String, ext:String)
<!-- Begin VideoJS -->
  <div class="video-js-box">
    <!-- Using the Video for Everybody Embed Code http://camendesign.com/code/video_for_everybody -->
    <video id="post-media-video" class="video-js" width="400" height="250" controls="controls" preload="auto" poster="http://video-js.zencoder.com/oceans-clip.png">
    @if(ext == "mp4"){
      <source src="@videoUrl" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
    }
    @if(ext == "webm"){
      <source src="@videoUrl" type='video/webm; codecs="vp8, vorbis"' />
    }
    @if(ext == "ogv" || ext == "ogg"){
      <source src="@videoUrl" type='video/ogg; codecs="theora, vorbis"' />
    }
      <!-- Flash Fallback. Use any flash video player here. Make sure to keep the vjs-flash-fallback class. -->
      <object id="flash_fallback_1" class="vjs-flash-fallback" width="640" height="264" type="application/x-shockwave-flash"
        data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf">
        <param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
        <param name="allowfullscreen" value="true" />
        <param name="flashvars" value='config={"playlist":["http://video-js.zencoder.com/oceans-clip.png", {"url": "@videoUrl","autoPlay":false,"autoBuffering":true}]}' />
        <!-- Image Fallback. Typically the same as the poster image. -->
        <img src="" width="640" height="264" alt="Poster Image"
          title="No video playback capabilities." />
      </object>
    </video>
    <!-- Download links provided for devices that can't play video in the browser. -->
    <p class="vjs-no-video"><strong>Download Video:</strong>
    @if(ext == "mp4"){
      <a href="@videoUrl">MP4</a>,
    }
    @if(ext == "webm"){
      <a href="@videoUrl">WebM</a>,
    }
    @if(ext == "ogv" || ext == "ogg"){
      <a href="@videoUrl">Ogg</a><br>
    }
      <!-- Support VideoJS by keeping this link. -->
      <a href="http://videojs.com">HTML5 Video Player</a> by VideoJS
    </p>
  </div>
  <!-- End VideoJS -->

<script type="text/javascript">
   var myPlayer = VideoJS.setup("post-media-video");
 </script>
